package com.frxuexi.park2209.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.frxuexi.base.entity.VisitorBean
import com.frxuexi.base.entity.VisitorBeanItem
import com.frxuexi.park2209.R

class VisitorAdapter:BaseQuickAdapter<VisitorBeanItem,BaseViewHolder>(R.layout.item_visitor) {
    override fun convert(helper: BaseViewHolder, item: VisitorBeanItem) {
        helper.setText(R.id.tv_vis_start,"开始时间：${item.visitorStart}")
        helper.setText(R.id.tv_vis_end,"结束时间：${item.visitorEnd}")
        helper.setText(R.id.tv_vis_cardno,"车牌号：${item.carNum}")
        helper.setText(R.id.tv_vis_num,"来访天数：${item.visitorTime}")
        helper.setText(R.id.tv_vis_des,"来访详情：${item.visitorDescribe}")
    }
}